"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
const common_assets = require("../../../../../../common/assets.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
  const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
  (_easycom_up_text2 + _easycom_up_calendar2 + _easycom_up_button2)();
}
const _easycom_up_text = () => "../../../../../../node-modules/uview-plus/components/u-text/u-text.js";
const _easycom_up_calendar = () => "../../../../../../node-modules/uview-plus/components/u-calendar/u-calendar.js";
const _easycom_up_button = () => "../../../../../../node-modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
  (_easycom_up_text + _easycom_up_calendar + BPLChart1 + BPLChart2 + _easycom_up_button)();
}
const BPLChart1 = () => "./BPLChart1/index.js";
const BPLChart2 = () => "./BPLChart2/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const user = common_vendor.ref({
      name: "熊翱",
      risklevel: {
        nomal: 1,
        low: 1,
        light: 2,
        middle: 1,
        high: 2,
        get all() {
          return this.nomal + this.low + this.light + this.middle + this.high;
        }
      },
      averageSBP: 131,
      averageDBP: 88
    });
    const turnLeft = common_vendor.ref("<");
    const activeStatus = common_vendor.ref("week");
    function showStatus(status) {
      activeStatus.value = status;
    }
    const dateShow = common_vendor.ref(false);
    const weekValue = common_vendor.ref("7月15日-7月22日");
    const monthValue = common_vendor.ref("2024年7月");
    const yearValue = common_vendor.ref("2024年");
    function dateConfirm() {
      dateShow.value = false;
    }
    return (_ctx, _cache) => {
      return {
        a: common_assets._imports_0,
        b: common_vendor.p({
          mode: "name",
          text: user.value.name,
          bold: "true",
          format: "encrypt"
        }),
        c: common_vendor.n({
          active: activeStatus.value === "week"
        }),
        d: common_vendor.o(($event) => showStatus("week")),
        e: common_vendor.n({
          active: activeStatus.value === "month"
        }),
        f: common_vendor.o(($event) => showStatus("month")),
        g: common_vendor.n({
          active: activeStatus.value === "year"
        }),
        h: common_vendor.o(($event) => showStatus("year")),
        i: common_vendor.t(turnLeft.value),
        j: common_vendor.t(weekValue.value),
        k: common_vendor.o(($event) => dateShow.value = true),
        l: activeStatus.value === "week",
        m: common_vendor.t(turnLeft.value),
        n: common_vendor.t(monthValue.value),
        o: common_vendor.o(($event) => dateShow.value = true),
        p: activeStatus.value === "month",
        q: common_vendor.t(turnLeft.value),
        r: common_vendor.t(yearValue.value),
        s: common_vendor.o(($event) => dateShow.value = true),
        t: activeStatus.value === "year",
        v: common_vendor.o(($event) => dateShow.value = false),
        w: common_vendor.o(dateConfirm),
        x: common_vendor.p({
          show: dateShow.value,
          ["min-date"]: "2024-01-01",
          ["max-date"]: "2029-12-31",
          ["month-num"]: "120"
        }),
        y: common_vendor.t(user.value.averageSBP),
        z: common_vendor.t(user.value.averageDBP),
        A: common_vendor.p({
          text: "本周血压基本情况"
        }),
        B: common_vendor.p({
          type: "info",
          text: "以上内容基于《2018年中国高血压防治指南》中关于诊室血压的分级标准。"
        }),
        C: common_vendor.p({
          text: "血压异常记录"
        }),
        D: common_vendor.p({
          text: "高度"
        }),
        E: common_vendor.p({
          text: `${user.value.risklevel.high}次`
        }),
        F: common_vendor.p({
          text: "中度"
        }),
        G: common_vendor.p({
          text: `${user.value.risklevel.middle}次`
        }),
        H: common_vendor.p({
          text: "轻度"
        }),
        I: common_vendor.p({
          text: `${user.value.risklevel.light}次`
        }),
        J: common_vendor.p({
          text: "正常高值"
        }),
        K: common_vendor.p({
          text: `${user.value.risklevel.nomal}次`
        }),
        L: common_vendor.p({
          text: "偏低"
        }),
        M: common_vendor.p({
          text: `${user.value.risklevel.low}次`
        }),
        N: common_vendor.p({
          text: "总计"
        }),
        O: common_vendor.p({
          text: `${user.value.risklevel.all}次`
        }),
        P: common_vendor.p({
          type: "primary",
          text: "增加记录"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5a07ee55"]]);
wx.createPage(MiniProgramPage);
